package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.acticle.domain.Query;
import cn.wolfcode.luowowo.acticle.query.QuerytionsQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QueryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Query record);

    Query selectByPrimaryKey(Long id);

    List<Query> selectAll();

    int updateByPrimaryKey(Query record);

    List<Query> selectForList(QuerytionsQuery qo);

    int selectByReplay(Long id);

    void updateByReply(@Param("id") Long id, @Param("newreply") int newreply);
}